package com.zk.stock.mapper;

import com.zk.stock.pojo.domain.InnerMarketDomain;
import com.zk.stock.pojo.domain.StockBlockDomain;
import com.zk.stock.pojo.entity.StockMarketIndexInfo;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Map;

/**
* @author 曹自康的Laptop
* @description 针对表【stock_market_index_info(国内大盘数据详情表)】的数据库操作Mapper
* @createDate 2024-06-27 20:31:39
* @Entity com.zk.stock.pojo.entity.StockMarketIndexInfo
*/
public interface StockMarketIndexInfoMapper {

    int deleteByPrimaryKey(Long id);

    int insert(StockMarketIndexInfo record);

    int insertSelective(StockMarketIndexInfo record);

    StockMarketIndexInfo selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(StockMarketIndexInfo record);

    int updateByPrimaryKey(StockMarketIndexInfo record);

    /**
     * 指定时间点
     * @param curDate
     * @param mCodes
     * @return
     */


    List<InnerMarketDomain> getMarkeInfo(@Param("curDate") Date curDate, @Param("mCodes") List<String> mCodes);

    List<StockBlockDomain> getStockBlockAll();

    List<Map> getSumAmtInfo(@Param("openData") Date openData, @Param("endDate") Date endDate, @Param("inner") List<String> inner);

    int insertBatch(@Param("list") ArrayList<StockMarketIndexInfo> list);
}
